function toggle_visibility_id(id) {
	var e = document.getElementById(id);

	var datosExtras = document.getElementsByClassName('datosExtras');

	// Loop through, hiding non-selected divs, and showing selected div
	for(var i = 0; i < datosExtras.length; i++) {
		if(datosExtras[i].id == e.id) {
			if(datosExtras[i].style.display == 'block')
				datosExtras[i].style.display = 'none';
			else
				datosExtras[i].style.display = 'block';
		} else {
			datosExtras[i].style.display = 'none';
		}
	}
}

function toggle_visibility_name(id) {
	var elemnts = document.getElementsByName(id);
	var b = document.getElementById(id);
	for (e in elemnts){
		if(elemnts[e].style.display == 'table-row'){
			b.innerHTML="Mostrar";
			elemnts[e].style.display = 'none';
		}else{
			b.innerHTML="Ocultar";
			elemnts[e].style.display = 'table-row';
		}
	}	
}

